<!--Start Discount Box-->
<div class="container960 ft_lt paddingB20 maginT18">
    <h1 class="hdgDgray20Bold paddingB10"><?php //echo $heading_title;  ?>Discount Box (Save upto 78 percent)</h1>
    <!--Start Product-->
    <!--Start Product-->
    <div class="container958 ft_lt bgColorWhite borderGrayTopBlue borderRadius5">

        <?php foreach ($products as $product) { ?>
            <!--Start Each Pro-->
            <div class="container218 paddingLR10 positionRelative paddingTB5 ft_lt borderGrayRight">
                <!--Start Sticker-->
                 <?php if ($product['special']) { ?>
                <?php if($product['price'] > $product['special']){ ?>
                <div class="stickerContainer absolutePositionT6L14">
                    <h4 class="txt11BoldWhite txt_Acenter"><?php  echo round(((substr($product['price'],1,10)-substr(@$product['special'],1,10))/substr(@$product['special'],1,10))*100);?>% off</h4>
                    <!--End Sticker-->
                </div>
                <?php }
                
                } ?>
                <?php if ($product['thumb']) { ?>
                    <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
                <?php } ?>
                <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
                <?php if ($product['price']) { ?>
                    <!--Start Price-->
                    <p class="priceContainer clearfix">
                        <?php if (!$product['special']) { ?>
                            <span class="product_new_price"><?php echo $product['price']; ?></span> 
                        <?php } else { ?>
                            <span class="product_old_price"><?php echo $product['price']; ?></span>
                            <span class="product_new_price"><?php echo $product['special']; ?></span>
                        <?php } ?>	
                    </p>
                    <div class="clear"></div>

                <?php } ?>

                <p class="productSelectionContainer clearfix">
                    <?php if ($product['rating']) { ?>
                    <div class="rating compare ft_lt"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
                <?php } ?>

                <a onclick="addToCompare('<?php echo $product['product_id']; ?>');" class="compare ft_lt"><span>Compare</span></a>

                <a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="addCart ft_rt"><span><?php echo $button_cart; ?></span></a>
                </p>
                <!--End Price--> 
            </div>
        <?php } ?>            


    </div>
    <!--End Product-->
</div>
<!--End Discount Box-->
</div>
<!--End body wrapper Content-->
<div class="clear"></div>